#ifndef _TIME_H_
#define _TIME_H_

#include "stm32f10x.h"
#include "stdbool.h"

#define TRUE 	1
#define FALSE 0

typedef struct TIMER
{ 
		uint32_t SystiVal;
		uint32_t TimeVal;
		int  IsTimeOut;	 
}TIME;	

void TimeOutSet(TIME *timer,uint32_t timeout);
uint8_t IsTimeOut(TIME *timer);

void Time_init(uint16_t Per,uint16_t Pres);
void NVIC_init(void);
void LED_OFF_ON(void);

#endif

